<%inherit file="main.html"/>

<%block name="Title">View List 导航管理</%block>

<%block name="Main">
	<div id="nav">
		<div class="buttons">
				<a href="/admin/navigation/new" class="button big">添加</a>
		</div>
	</div>
	
	
	<table id="table_list" summary="显示分类列表">
		<caption>分类列表</caption>
		<thead>
		<tr class="odd">
			<th scope="col" abbr="Navigation ID">ID</th>
			<th scope="col" abbr="Navigation Title">导航名</th>	
			<th scope="col" abbr="Navigation Link">链接</th>	
			<th scope="col" abbr="Navigation Weight">权重</th>	
			<th scope="col" abbr="Navigation Positon">位置</th>	
			<th scope="col" abbr="Navigation Action">操作</th>
		</tr>	
		</thead>
		% for navigation in DATA.navigationList:
		<tr class="${loop.cycle('even', 'odd')}">
			<td>${navigation.key().id()}</td>
			<td>${navigation.name}</td>
			<td><a href="${navigation.link}">${navigation.link}</a></td>
			<td>${navigation.weight}</td>
			<td>${navigation.position}</td>
			<td>
				<a name="edit" href="/admin/navigation/edit/${navigation.key().id()}">[编辑]</a>
				<a name="delete" href="/admin/navigation/delete/${navigation.key().id()}">[删除]</a>		
			</td>
		</tr>	
		% endfor
	</table>
</%block>